/*
 * @Description:
 * @Autor: Song
 * @Date: 2022-11-04 11:53:08
 * @LastEditors: Song
 * @LastEditTime: 2023-01-06 15:44:16
 */
import service from "@/api/index";
const PROJECT_API = "api/Project/";
const PROJECT_TYPE_API = "/api/ProjectType/";
export default {
	//项目
	GetProjectInfoPageDtoApi: (params: object) => {
		//获取所有项目列表
		return service.post(`${PROJECT_API}GetProjectInfoPageDto`, params);
	},
	GetProjectInfoApi: (params: object = {}) => {
		//获取所有项目列表
		return service.post(`${PROJECT_API}GetProjectInfo`, params);
	},
	AddProjectInfoApi: (params: object) => {
		//添加项目
		return service.post(`${PROJECT_API}AddProjectInfo`, params);
	},
	UpdateProjectApi: (params: object) => {
		//修改项目
		return service.post(`${PROJECT_API}UpdateProject`, params);
	},
	UpdateStateApi: (params: object) => {
		//修改项目状态
		return service.post(`${PROJECT_API}UpdateState`, params);
	},

	//项目分类

	AddProjectTypeApi: (params: object) => {
		//添加分类
		return service.post(`${PROJECT_TYPE_API}AddProjectType`, params);
	},

	GetAllProjectTypeApi: () => {
		//获取所有分类列表
		return service.get(`${PROJECT_TYPE_API}GetAllProjectType`);
	},
	UpdateTypeStateApi: (params: object) => {
		//修改分类状态
		return service.post(`${PROJECT_TYPE_API}UpdateState`, params);
	},

	UpdateDeleteStateApi: (params: object) => {
		//删除分类
		return service.post(`${PROJECT_TYPE_API}UpdateDeleteState`, params);
	}
};
